var Base = Class.extend({
    js      : [],
    global  : [],
    plugins : [],
    default : ["modernizr","selectivizr"],
    phpjs   : [],
    init    : function(){
        var me = this;
        
        me.loadJS({js:me.default,folder:"plugins"});
        me.loadJS({js:me.plugins,folder:"plugins"});
        me.loadJS({js:me.phpjs,folder:"plugins/phpjs"});
        me.loadJS({js:me.global,folder:"global"});
        me.loadJS({js:me.js});

    },
    
    loadJS : function(o){
      var me = this;
      var params = $.extend({folder:"",js:""},o);
      
      $.each(params.js, function(index, value) {
        head.js(params.folder+"./"+value+".js");
      })
    },
    
    load: function(name){
        var me = this;
        head.js(name+".js");
        eval(name)();
    }
  
});
